package com.graduation.mybatis.mapper;

import com.graduation.mybatis.bean.DietRecordVO;
import com.graduation.mybatis.bean.PlanFoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 23726
* @description 针对表【plan_foods】的数据库操作Mapper
* @createDate 2025-04-22 12:05:32
* @Entity com.graduation.mybatis.bean.PlanFoods
*/
public interface PlanFoodsMapper extends BaseMapper<PlanFoods> {
    List<DietRecordVO> selectDietRecordsByPlanId(@Param("planId")Integer planId);
    int deleteByPlanId(@Param("planId") Integer planId);
    void batchInsertFoods(@Param("planId") Integer planId, @Param("foods") List<PlanFoods> foods);
    void insertFoods(PlanFoods planFoods);
    int deleteByPlanFoodId(@Param("id") Integer id);
}




